/**
 * 
 */
package com.gi.profiler.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author Ruba
 * 
 */

@DatabaseTable
public class Spot {
    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField
    private String name;

    @DatabaseField(foreign = true, canBeNull = false)
    private WayPoint wayPoint;

    @DatabaseField(defaultValue = "20")
    private double activationRadius; 
    
    @DatabaseField(foreign = true)
    private ProfileCategory category;
    
    
    public Spot() {

    }

    
    public Spot(String name, WayPoint wayPoint) {
	super();
	this.name = name;
	this.wayPoint = wayPoint;
    }


    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the wayPoint
     */
    public WayPoint getWayPoint() {
        return wayPoint;
    }

    /**
     * @return the activationRadius
     */
    public double getActivationRadius() {
        return activationRadius;
    }

    /**
     * @return the category
     */
    public ProfileCategory getCategory() {
        return category;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param wayPoint the wayPoint to set
     */
    public void setWayPoint(WayPoint wayPoint) {
        this.wayPoint = wayPoint;
    }

    /**
     * @param activationRadius the activationRadius to set
     */
    public void setActivationRadius(double activationRadius) {
        this.activationRadius = activationRadius;
    }

    /**
     * @param category the category to set
     */
    public void setCategory(ProfileCategory category) {
        this.category = category;
    }
    
}
